﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Drawing;
using System.Data;
using System.Linq;
using System.Text;
using System.Windows.Forms;

namespace CSW.Security.UI.DevEx.UserControls
{
    /// <summary>
    /// SecurityMaintenanceUserControl. A tabbed representation of the other
    /// controls in <see cref="CSW.Security.UI.DevEx.UserControls"/>.
    /// </summary>
    public partial class SecurityMaintenanceUserControl : UserControl
    {
        /// <summary>
        /// Initializes a new instance of the <see cref="SecurityMaintenanceUserControl"/> class.
        /// </summary>
        public SecurityMaintenanceUserControl()
        {
            InitializeComponent();
        }

        private void tabSecurity_SelectedPageChanged(object sender, DevExpress.XtraTab.TabPageChangedEventArgs e)
        {
            if (e.Page == tpSecurityReport)
            {
                Cursor.Current = Cursors.WaitCursor;
                securityReportUserControl.RefreshGrids();
                Cursor.Current = Cursors.Default;
            }
        }
    }
}
